﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Templates/DefaultMaster.master" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="Templates_ccPupilNumbers_Default" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    
    
    <asp:Panel ID="pnlPupilNumber" DefaultButton="btnEnter" CssClass="form" runat="server">
        
        <h1><asp:Image ID="Image2" ImageUrl="~/dbimages/h1-carbonCalculator.gif" AlternateText="Pupil Numbers" runat="server" /></h1>
        
        <asp:Panel ID="pnlMenuDisabled" runat="server">
            <div class="ccNav1">
                <ul>
                    <li><asp:Image ID="Image1" ImageUrl="~/dbimages/ccNav_pnActive.gif" AlternateText="Pupil Numbers" runat="server" /></li>
                    <li><asp:Image ID="Image3" ImageUrl="~/dbimages/ccNav_eaOff.gif" AlternateText="Energy Audit" runat="server" /></li>
                    <li><asp:Image ID="Image4" ImageUrl="~/dbimages/ccNav_waOff.gif" AlternateText="Waste Audit" runat="server" /></li>
                </ul>
            </div>
            <div class="ccNav2">
                <ul>
                    <li class="ccNav2Active">Audit One</li>
                    <li class="ccNav2Off">Audit Two</li>
                    <li class="ccNav2Off">Analysis</li>
                </ul>
            </div>
            <p>Please enter your schools pupil numbers for this academic year. Once you have done this you can complete an audit.</p>
        </asp:Panel>
    
        <asp:Panel ID="pnlMenuEnabled" Visible="false" runat="server">
            <div class="ccNav1">
                <ul>
                    <li><asp:Image ID="Image5" ImageUrl="~/dbimages/ccNav_pnActive.gif" AlternateText="Pupil Numbers" runat="server" /></li>
                    <li><asp:HyperLink ID="lnkEnergyAudit" NavigateUrl="EnergyAudit.aspx" ImageUrl="~/dbimages/ccNav_eaOn.gif" ToolTip="Energy Audit" runat="server" /></li>
                    <li><asp:HyperLink ID="lnkWasteAudit" NavigateUrl="WasteAudit.aspx" ImageUrl="~/dbimages/ccNav_waOn.gif" ToolTip="Waste Audit" runat="server" /></li>
                </ul>
            </div>
        </asp:Panel>
    
        <asp:ValidationSummary ID="valSummary" runat="server" DisplayMode="BulletList" HeaderText="Please correct the following errors and try again."
            ShowSummary="True" ShowMessageBox="False" />
       
        <asp:Panel ID="pnlErrors" CssClass="errorBox" Visible="false" EnableViewState="false" runat="server">
            <ul id="ulErrors" runat="server">
            </ul>
        </asp:Panel>
            
        <ul class="form">         
            
            <li class="formItem">
                <span class="formLabel">
                    <asp:Label ID="Label13" Text="2008 Pupil Numbers:" AssociatedControlID="txtPupilNumber"
                    runat="server" />
                    <span style="color:Red">*</span>
                </span>
                
                <span class="forminput">
                    <asp:TextBox ID="txtPupilNumber" runat="server"/>
                    <asp:RequiredFieldValidator ID="valPupilNumber" ErrorMessage="The Pupil Number for this academic year is required"
                        ControlToValidate="txtPupilNumber" Display="Dynamic" runat="server" />
                    <asp:CompareValidator ID="xx" ControlToValidate="txtPupilNumber" Operator="GreaterThan" ValueToCompare="0" Type="Integer" runat="server" ErrorMessage="a number bigger than 0"></asp:CompareValidator>
                </span>
            
            </li>
            
             <li class="formItem buttons">
                <span class="forminput">
                    <asp:Button ID="btnEnter" Text="Enter" runat="server" OnClick="btnEnter_Click" />
                </span>
            </li>
       
        </ul>
        
    </asp:Panel>
    
    <asp:Panel ID="pnlEntry" Visible="false" runat="server">
    <p>You can now enter the results of your audit.</p>
    </asp:Panel>
    
</asp:Content>
